<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div class="iq-top-navbar header-top-sticky" th:fragment="topbar">
    <div class="iq-navbar-custom">
        <div class="iq-sidebar-logo">
            <div class="top-logo">
                <a th:href="@{/toindex}" class="logo">
                    <img th:src="@{/images/logo.png}" class="img-fluid" alt="">
                    <span>Shiqi</span>
                </a>
            </div>
        </div>
        <nav class="navbar navbar-expand-lg navbar-light p-0">
            <button class="navbar-toggler" type="button" data-toggle="collapse"
                    data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                    aria-expanded="false" aria-label="Toggle navigation">
                <i class="ri-menu-3-line"></i>
            </button>
            <div class="iq-menu-bt align-self-center">
                <div class="wrapper-menu">
                    <div class="main-circle"><i class="ri-more-fill"></i></div>
                    <div class="hover-circle"><i class="ri-more-2-fill"></i></div>
                </div>
            </div>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav ml-auto navbar-list">
                    <li class="nav-item">
                        <a class="search-toggle iq-waves-effect language-title" th:text="#{main.language}">
                            语言 <i class="ri-arrow-down-s-line"></i></a>
                        <div class="iq-sub-dropdown">
                            <a class="iq-sub-card" th:href="@{/toindex(l='zh_CN')}">
                                <img th:src="@{/images/small/ch.png}" alt="img-flaf" class="img-fluid mr-2">
                                简体中文
                            </a>
                            <a class="iq-sub-card" th:href="@{/toindex(l='en_US')}">
                                <img th:src="@{/images/small/en.png}" alt="img-flaf" class="img-fluid mr-2">
                                English
                            </a>
                        </div>
                    </li>
                    <li class="nav-item iq-full-screen">
                        <a href="#" class="iq-waves-effect" id="btnFullscreen"><i
                                class="ri-fullscreen-line"></i></a>
                    </li>
                </ul>
            </div>
            <ul class="navbar-list">
                <li>
                    <a href="#" class="search-toggle iq-waves-effect d-flex align-items-center">
                        <img th:src="@{/images/user/1.jpg}" class="img-fluid rounded mr-3" alt="user">
                        <div class="caption">
                            <h6 class="mb-0 line-height">[[${session.loginUser}]]</h6>
                            <span class="font-size-12" th:text="#{main.Available}">Available</span>
                        </div>
                    </a>
                    <div class="iq-sub-dropdown iq-user-dropdown">
                        <div class="iq-card shadow-none m-0">
                            <div class="iq-card-body p-0 ">
                                <div class="bg-primary p-3">
                                    <h5 class="mb-0 text-white line-height"><span th:text="#{main.Hello}">Hello</span>
                                        [[${session.loginUser}]]</h5>
                                    <span class="text-white font-size-12" th:text="#{main.Available}">Available</span>
                                </div>
                                <!--修改个人信息-->
                                <a th:href="@{/getUserInfo}" class="iq-sub-card iq-bg-primary-hover">
                                    <div class="media align-items-center">
                                        <div class="rounded iq-card-icon iq-bg-primary">
                                            <i class="ri-profile-line"></i>
                                        </div>
                                        <div class="media-body ml-3">
                                            <h6 class="mb-0 " th:text="#{main.upMyInfo}">Edit Profile</h6>
                                            <p class="mb-0 font-size-12" th:text="#{main.upMyInfoDes}">
                                                Modify your personal details.</p>
                                        </div>
                                    </div>
                                </a>
                                <!--注销-->
                                <div class="d-inline-block w-100 text-center p-3">
                                    <a class="bg-primary iq-sign-btn" th:href="@{/logout}"
                                       role="button" th:text="#{main.Logout}">注销</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </nav>

    </div>
</div>

</body>
</html>
